luci-theme-openwrt-2020: remove submenu margin-bottom when submenu not visible
authorJan Breuer <[email protected]>
Tue, 13 Apr 2021 14:38:03 +0000 (16:38 +0200)
committerJan Breuer <[email protected]>
Tue, 13 Apr 2021 14:45:10 +0000 (16:45 +0200)
Signed-off-by: Jan Breuer <[email protected]>
themes/luci-theme-openwrt-2020/htdocs/luci-static/openwrt2020/cascade.css

index aa811ef6d33c8da437e6cc5a33a5defb4b3a79d8..1a276c4952149407cff68c2bedd38290d09f23bc 100644 (file)
@@ -167,7 +167,7 @@ body {
 
 #mainmenu ul {
        padding: 0;
-       margin: 0 0 .5em .5em;
+       margin: 0 0 0 .5em;
        line-height: 1.5em;
 }
 
@@ -189,6 +189,7 @@ body {
 #mainmenu li.active > ul {
        max-height: 3000px;
        transition: max-height 1s ease-in-out;
+       margin: 0 0 .5em .5em;
 }
 
 #mainmenu .l1 > li > a {